package com.effectiv.gooruda.rest.domain;


import javax.ws.rs.FormParam;

import org.codehaus.jackson.annotate.JsonIgnore;
import org.jboss.resteasy.annotations.providers.multipart.PartType;
import org.springframework.data.annotation.Version;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@ToString
public class FileStorage extends PesistentBase{


	private static final long serialVersionUID = 1L;
	
	@FormParam("description")
	@Getter @Setter
	private String description;
	
	@FormParam("fileName")
	@Getter @Setter
	private String fileName;
	
	@FormParam("folder")
	@Getter @Setter
	private String folder;
	
	@FormParam("type")
	@Getter @Setter
	private String type;
	
	@FormParam("owner")
	@Getter @Setter
	private String owner;
	
	
	@Getter @Setter
	private long size;
	
	@Version
	@Getter @Setter
	private Integer version;
	
	
	@Getter @Setter
	private String appFileName;
	
	@JsonIgnore
	@Getter @Setter
	private String gridFileId;
	
	@FormParam("fileContent")
    @PartType("application/octet-stream")
	@Getter @Setter
	private byte[] fileContent;
	
	@FormParam("tags")
	@Getter @Setter
	private String [] tags;
	
	
}
